/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-10-09
*/
package com.rzico.basics.service;

import com.rzico.base.BaseMapper;
import com.rzico.base.impl.BaseServiceImpl;
import com.rzico.basics.entity.DistributionItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzico.basics.mapper.DistributionItemMapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <pre>
 * 分销设置项业务类
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Service
public class DistributionItemService extends BaseServiceImpl<DistributionItem, String> {

    @Autowired
    private DistributionItemMapper distributionItemMapper;

    @Override
    public BaseMapper<DistributionItem, String> getMapper() {
        return distributionItemMapper;
    }

    public List<DistributionItem> getItemList(Long distributionId) {
        Map<String,Object> params = new HashMap<>();
        params.put("distributionId",distributionId);
        return distributionItemMapper.selectList(params);
    }

}
